package st.business.tepth.business.taskallocation.station;

import io.reactivex.disposables.Disposable;
import st.business.tepth.base.OnDataConvertListener;
import st.business.tepth.business.bean.ModifyStationBean;
import st.shadow.library.core.base.mvp.BaseModel;
import st.shadow.library.core.base.mvp.BasePresenter;
import st.shadow.library.core.base.mvp.BaseView;

/**
 * Author: shadow
 * Email:  1025431817@qq.com
 * Time:   2019-07-17 17:46
 */

public interface StationContract {
    interface View extends BaseView {
        void showData(ModifyStationBean modifyStationBean);

        void modifySucceed();

        void showError(String msg);
    }

    interface Model extends BaseModel {
        Disposable getWorkPlace(String token, int repairId,
                                OnDataConvertListener<ModifyStationBean> listener);

        Disposable modifyStation(String token, int repairId, int stationId,
                                 OnDataConvertListener<String> listener);
    }

    abstract class Presenter extends BasePresenter<View> {
        abstract void getWorkPlace(String token, int repairId);

        abstract void modifyStation(String token, int repairId, int stationId);
    }
}
